# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt dot de>

pkgname=lockfile-progs
pkgver=0.1.19
pkgrel=3
pkgdesc="programs for locking and unlocking files and mailboxes"
arch=('loong64' 'x86_64')
license=('GPL')
url="https://packages.debian.org/unstable/misc/lockfile-progs"
depends=('glibc' 'liblockfile')
makedepends=('liblockfile')
source=(https://ftp.debian.org/debian/pool/main/l/lockfile-progs/${pkgname}_${pkgver}.tar.gz)
sha256sums=('2c5704b01c8f474f82921780e4592a927b2bf6a6d7616354a6c5d7cd5664857e')

build() {
    cd "$srcdir"/lockfile-progs-$pkgver
    make
}

package() {
    cd "$srcdir"/lockfile-progs-$pkgver
    mkdir -p "$pkgdir"/usr/bin
    install -s bin/* "$pkgdir"/usr/bin
    mkdir -p "$pkgdir"/usr/share/man/man1
    install man/*.1 "$pkgdir"/usr/share/man/man1
}
